package com.spring.schedule_system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.schedule_system.entity.Course;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository

public interface CourseDao extends BaseMapper<Course> {
    @Insert("insert into tb_course(course_nature,course_name,course_category,course_credit,course_experimentTime,course_computerTime) select course_nature,course_name,course_category,course_credit,shiyanxueshi,shangjixueshi from common_user;")
    int insertCourse();
}
